

try:
    f = open('./test.txt', 'r', encoding='UTF-8')
    print(f.name)
    print(f.read())
except Exception as e:
    print("exception:", e)
finally:
    if f:
        f.close()

